package com.bean;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author WZ
 * @version 1.0
 * @date 2021/8/31 11:04
 */
@Component
@ConfigurationProperties(prefix = "pet")
@Data
@ToString
public class Pet {
	private String name;
	private  Double weight;
}
